<%@page language="java" contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript"
	src="/gladiator-app/public/ckeditor/ckeditor.js"></script>
<script src="/gladiator-app/public/ckeditor/sample/sample.js"
	type="text/javascript"></script>
<link href="/gladiator-app/public/ckeditor/sample/sample.css"
	rel="stylesheet" type="text/css" />
<title>Gladiator</title>
</head>
<body>
	<a href="/gladiator-app/flow/showAdmin"><i>powrót</i></a>
	<br>
	<h1 class="samples">Gladiator &mdash; Dodaj Nowego Newsa</h1>
	<div class="description">
		<p>Poniżej podaj tytuł wiadomości oraz treść. Data zostanie
			dodana automatycznie. Treść newsa możesz dowolnie edytować, przy
			pomocy CKEditor.</p>

	</div>
	<div id="alerts">
		<noscript>
			<p>
				<strong>CKEditor requires JavaScript to run</strong>. In a browser
				with no JavaScript support, like yours, you should still see the
				contents (HTML data) and you should be able to edit it normally,
				without a rich editor interface.
			</p>
		</noscript>
	</div>
	<form:form commandName="news" action="/gladiator-app/newsy"
		method="post">
		<form:hidden path="newsPk" id="newsPk" />
		<p>
			<b>Temat: <form:input path="subject" id="subject" size="80" />
			</b><br> <br>
		</p>
		<p>
			<label for="editor1"> Edytor tekstu:</label>

			<form:textarea class="ckeditor" cols="80" rows="10" path="contents"
				id="contents" />
		</p>
		<p>
			<input type="submit" value="Zapisz" />
		</p>

	</form:form>

	<div id="footer">
		<hr />
		<p>
			CKEditor - The text editor for the Internet - <a class="samples"
				href="http://ckeditor.com/">http://ckeditor.com</a>
		</p>
		<p id="copy">Copyright &copy; 2012</p>
	</div>
</body>
</html>
